module Classes {
    
    export class Enemy extends BaseObject {

        constructor() {
            super();
        }

        public config(type: string) {
            super.config(type, "enemy");
            this.body.on("complete", this, this.onComplete);
        }

        public onLoop(): void {
            this.y += this.speed;
        }

        public looseBlood(num: number): void {
            super.looseBlood(num);
            Manager.DataManager.getInstance().addScore(Math.abs(num));
        }
    }

}